package com.gk.panda.pojo.patrol.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

/**
 * @Author：xxz
 * @Create: 2022/11/1 16:07
 */
@Data
@TableName("report_resource")
public class ReportResourceEntity {
    @TableId(type = IdType.AUTO)
    /**
     * id
     */
    private Long id;

    public ReportResourceEntity() {
    }
    //事件 构造器
    public ReportResourceEntity(Long reportId,Long patrolId, String type, String url,Date createTime,String createBy) {
        this.createTime=createTime;
        this.createBy=createBy;
        this.patrolId=patrolId;
        this.reportId = reportId;
        this.type = type;
        this.url = url;
    }

    /**
     * 事件上报id
     */
    private Long reportId;

    /**
     * 巡护id
     */
    private Long patrolId;

    /**
     * 资源类型
     */
    private String type;

    /**
     * 资源url
     */
    private String url;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 创建人
     */
    private String createBy;

    /**
     * 更新时间
     */
    private Date modifyTime;

    /**
     * 更新人
     */
    private String modifyBy;

    /**
     * 修改ip
     */
    private String ipStr;

    /**
     * 是否删除(0:未删除 1:已删除)
     */
    @TableLogic
    private Integer delFlag;



}
